package com.df.ez_game.core.layers;

import com.df.ez_game.core.LayerServerNode;
import com.df.ez_game.core.layers.setting.NetLayerSetting;
import com.df.ez_game.core.layers.setting.RouterLayerSetting;
import com.df.ez_game.server.ServerNode;

public class ServerNodeSetting {
    private LayerServerNode owner;
    NetLayerSetting netLayerSetting;
    RouterLayerSetting routerLayerSetting;

    public ServerNodeSetting(LayerServerNode serverNode){
        this.owner = serverNode;
    }

    public NetLayerSetting netLayerSetting(){
        if(netLayerSetting ==null){
            netLayerSetting = new NetLayerSetting(this);
        }
        return netLayerSetting;
    }
    public RouterLayerSetting routerLayerSetting(){
        if(routerLayerSetting ==null){
            routerLayerSetting = new RouterLayerSetting(this);
        }
        return routerLayerSetting;
    }
}
